package model.agent.service.Impl;


import model.agent.entity.Agent;
import model.agent.mapper.AgentMapper;
import model.agent.service.IAgentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2019/6/25.
 */
@Service
@Transactional
public class AgentServiceImpl implements IAgentService {
    @Autowired
    private AgentMapper agentMapper;

    @Override
    public List<Agent> findall() {

        return  agentMapper.findall();
    }

    @Override
    public List<Agent> getByAddress(String address) {
        return agentMapper.getByAddress(address);
    }

    @Override
    public List<Agent> getByturnover(String turnover) {
        return null;
    }

    @Override
    public List<Agent> getByoverallscore(String overallscore) {
        return null;
    }

    @Override
    public List<Agent> getBytooklook(String takelook) {
        return null;
    }

//    @Override
//    public List<Agent> getByturnover(String turnover) {
//        return agentMapper.getByturnover(turnover);
//    }
//
//    @Override
//    public List<Agent> getByoverallscore(String overallscore) {
//        return agentMapper.getByoverallscore(overallscore);
//    }
//
//    @Override
//    public List<Agent> getBytooklook(String takelook) {
//        return agentMapper.getBytooklook(takelook);
//    }

    @Override
    public void del(String name) {
        agentMapper.del(name);
    }

    @Override
    public List<Agent> findsort() {
       return agentMapper.findsort();
    }


}


